Docfix for kill-buffer-hook and others.
authorChong Yidong <cyd@gnu.org>
Sun, 5 Aug 2012 07:45:12 +0000 (15:45 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 5 Aug 2012 07:45:12 +0000 (15:45 +0800)
* lisp/files.el (kill-buffer-hook): Provide a defvar.

* src/term.c (Vsuspend_tty_functions, Vresume_tty_functions):
* src/frame.c (Vdelete_frame_functions):
* src/emacs.c (Vkill_emacs_hook): Doc fix.

lisp/ChangeLog
lisp/files.el
src/ChangeLog
src/emacs.c
src/frame.c
src/term.c

index ec6917b0f924afbf2fe0a5d1f7ddd96459b4e627..9d867f189fae3e5e28480cf74bcb00eefca1e8ec 100644 (file)
@@ -1,3 +1,7 @@
+2012-08-05  Chong Yidong  <cyd@gnu.org>
+
+       * files.el (kill-buffer-hook): Provide a defvar.
+
 2012-08-05  Glenn Morris  <rgm@gnu.org>
 
        * eshell/esh-ext.el (eshell/addpath):
index 2b4ae460c3e423a0af3a7a20e3d9baec7ac19ade..b54d3d1b60e6c68a8a9c1845ab97200c0968b1a2 100644 (file)
@@ -1514,7 +1514,11 @@ expand wildcards (if any) and replace the file with multiple files."
       (other-window 1)
       (find-alternate-file filename wildcards))))
 
-(defvar kill-buffer-hook)  ; from buffer.c
+;; Defined and used in buffer.c, but not as a DEFVAR_LISP.
+(defvar kill-buffer-hook nil
+  "Hook run when a buffer is killed.
+The buffer being killed is current while the hook is running.
+See `kill-buffer'.")
 
 (defun find-alternate-file (filename &optional wildcards)
   "Find file FILENAME, select its buffer, kill previous buffer.
index 676be59d6215d4c199ce593b3e71aedb5c66ac48..0b59a8c97293463f827291186e731e5b94b4ed8c 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-05  Chong Yidong  <cyd@gnu.org>
+
+       * term.c (Vsuspend_tty_functions, Vresume_tty_functions):
+       * frame.c (Vdelete_frame_functions):
+       * emacs.c (Vkill_emacs_hook): Doc fix.
+
 2012-08-04  Eli Zaretskii  <eliz@gnu.org>
 
        * xfns.c (x_set_menu_bar_lines): Fix compilation error in
index c99ed7c4b07e5924feb07483b52738067ffad847..223d125db32b80245f40bb254ec0bf8221bfe9e3 100644 (file)
@@ -2424,7 +2424,7 @@ Emacs is running.  */);
               doc: /* Non-nil means Emacs is running without interactive terminal.  */);
 
   DEFVAR_LISP ("kill-emacs-hook", Vkill_emacs_hook,
-              doc: /* Hook to be run when `kill-emacs' is called.
+              doc: /* Hook run when `kill-emacs' is called.
 Since `kill-emacs' may be invoked when the terminal is disconnected (or
 in other similar situations), functions placed on this hook should not
 expect to be able to interact with the user.  To ask for confirmation,
index e43352d4e2457bbdd9d03dc98f286402690b78df..308179e206fd3bb6788a892e9ae357a5ebe8c6b2 100644 (file)
@@ -4351,7 +4351,7 @@ The pointer becomes visible again when the mouse is moved.  */);
   Vmake_pointer_invisible = Qt;
 
   DEFVAR_LISP ("delete-frame-functions", Vdelete_frame_functions,
-              doc: /* Functions to be run before deleting a frame.
+              doc: /* Functions run before deleting a frame.
 The functions are run with one arg, the frame to be deleted.
 See `delete-frame'.
 
index 803bb6458b61f4f4b40c56228502f790722d1d8f..64bc88a7cf096424f8df414346bb6fc1f5bf4e62 100644 (file)
@@ -3571,14 +3571,14 @@ This variable can be used by terminal emulator packages.  */);
 #endif
 
   DEFVAR_LISP ("suspend-tty-functions", Vsuspend_tty_functions,
-    doc: /* Functions to be run after suspending a tty.
+    doc: /* Functions run after suspending a tty.
 The functions are run with one argument, the terminal object to be suspended.
 See `suspend-tty'.  */);
   Vsuspend_tty_functions = Qnil;
 
 
   DEFVAR_LISP ("resume-tty-functions", Vresume_tty_functions,
-    doc: /* Functions to be run after resuming a tty.
+    doc: /* Functions run after resuming a tty.
 The functions are run with one argument, the terminal object that was revived.
 See `resume-tty'.  */);
   Vresume_tty_functions = Qnil;